package com.zhuiyun.pm.client.bidding.controller;


import com.zhuiyun.pm.client.bidding.entity.ClientGoodsEarnestMoney;
import com.zhuiyun.pm.client.bidding.entity.ClientGoodsInfo;
import com.zhuiyun.pm.client.bidding.mapper.ClientMyBiddingMapper;
import com.zhuiyun.pm.result.CommonResult;
import org.springframework.web.bind.annotation.*;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import javax.websocket.server.PathParam;
import java.util.List;

/* *
 * @Author: hui
 * @Descriprion: 前端控制器
 * @Date: 2023/3/13 13:42
 * @return null
 * @param null
 */
@RestController
@CrossOrigin
@RequestMapping("/mybidding")
public class ClientMyBiddingController {

    @Resource
    ClientMyBiddingMapper clientMyBiddingMapper;

    /* *
     * @Author: hui
     * @Descriprion: 通过userId查询到参与拍卖的商品
     * @Date: 2023/3/15 13:36
     * @return com.zhuiyun.pm.result.CommonResult
     * @param userId
     */
    @GetMapping("/findAllbyId")
    public CommonResult findAllbyId(@RequestParam Integer userId){
        return CommonResult.ok(clientMyBiddingMapper.listmy(userId));
    }


}
